package com.yld.scott.ch13;

import java.lang.annotation.Annotation;

public class AnnotationTest {
	
	
	public static void main(String[] args) throws Exception {
		
		
		String stuStr="com.yld.scott.ch13.Student";
		
		Class clazz= Class.forName(stuStr);
		
		
		Object stu = clazz.newInstance();
		
		//怎么拿到类上的注解s
		
		Annotation[] as = clazz.getAnnotations();
		
		
		System.out.println(as.length);
		
		
		
	}

}
